<?php

declare(strict_types=1);
namespace app\controller\Response;
use Omnipay\Common\Message\AbstractResponse;

class TradeAlipayQueryResponse extends AbstractResponse
{
    public function isSuccessful(): bool
    {
        return $this->data['code'] == '20000';
    }

    public function getQrcodeUrl(): string
    {
        return $this->data['qrcode_url'];
    }
}
